
<style>


</style>

<?=$this->msg('Seguimiento CAPEX '.$this->anio)?>


<?php echo $this->anchor($this->controllerName.'/insertar','Añadir Proyecto',array('class'=>'utiladd'));?>


<? if (!empty($this->tipo)): ?>

<div class="contenedor_tablesorter">

<table class="tabla_capex tablesorter" width="100%"> 
<thead class="ui-widget-header">
<tr> 
    <th width="60"><?php echo $this->translate('Referencia');?></th>
    <th><?php echo $this->translate('Proyecto');?></th>
	<th width="60"><?php echo $this->translate('Datacenter');?></th>
	<th width="60">P<?=$this->anio?></th>
	<th width="60"><?php echo $this->translate('Aprobación Comite');?></th>
    <th width="60"><?php echo $this->translate('Importe NOC');?> (€)</th>
	<th>PEP</th>
	<th width="60"><?php echo $this->translate('Contratado');?> (€)</th>
    <th width="60"><?php echo $this->translate('Previsto');?> (€)</th>
    <th width="60"><?php echo $this->translate('Avance');?> (€)</th>
    <th width="60"><?php echo $this->translate('Balance');?> (€)</th>
    <th><?php echo $this->translate("NOC")?></th>
    <th><?php echo $this->translate('Notas');?></th>
    <th width="50"><span class="ui-icon ui-icon-wrench "></th>
</tr> 
</thead> 
<tbody>
<?foreach((array)$this->tipo as $k => $w):?>
    <tr class="ui-state-hover fila_categoria"> 
    	<th colspan="3" align="center"><?=($k) ? $this->escape($k) : $this->translate('Sin Categorizar')?></th>
        <th><?=$this->numEs($this->suma[$k]['importe'],0)?></th>
        <th>&nbsp;</th>
        <th><?=$this->numEs($this->suma[$k]['noc'],0)?></th>
        <th>&nbsp;</th>
        <th><?=$this->numEs($this->suma[$k]['contratado'],0)?></th>
        <th><?=$this->numEs($this->suma[$k]['previsto'],0)?></th>
        <th><?=$this->numEs($this->suma[$k]['avance'],0)?></th>
        <th><?=$this->numEs($this->suma[$k]['balance'],0)?></th>
        <th colspan="2">&nbsp;</th>
    </tr> 
<?php echo $this->partialLoop($this->controllerName.'/fila.phtml', (array)$w); ?>	

<?endforeach?>
</tbody>
<tfoot> 
<tr class="ui-widget-header"> 
    <th colspan="3">&nbsp;</th>
    <th><?=$this->numEs($this->suma['importe'],0)?></th>
    <th>&nbsp;</th>
    <th><?=$this->numEs($this->suma['noc'],0)?></th>
	<th>&nbsp;</th>
	<th><?=$this->numEs($this->suma['contratado'],0)?></th>
    <th><?=$this->numEs($this->suma['previsto'],0)?></th>
    <th><?=$this->numEs($this->suma['avance'],0)?></th>
    <th><?=$this->numEs($this->suma['balance'],0)?></th>
    <th colspan="3">&nbsp;</th>
</tr> 
</tfoot> 
</table>
<div id="total_table_filter" style="float: right;">Display <span class="filtradas"><?=count($this->rows)?></span> of <?=count($this->rows)?></div>
</div>
<?else: echo $this->msg('No hay registros','atencion');endif?>

